<div class="row">
<div class="panel"><h6>Other Subject Schedules</h6></div>
<?=$system_message;?>
<?if(!empty($schedules)):?>
	<div class="section-container accordion" data-section="accordion">
		<?foreach($schedules as $k => $v):?>
			<section>
				<p class="title" data-section-title><a href="#panel1"><?=ucwords($v['section_name'].' | '.$v['room_name'].' | '.$v['subj']);?></a></p>
				<div class="content" data-section-content>
					<?$datas= array('studs'=>$v['studs'])?>
					<hr class="clearfix">
						<table class="table table-striped">
						<tr>
							<td>Room Information</td>
							<td><a href="<?=site_url('teacher/set_grades/'.$v['link']);?>" class="confirm btn btn-success btn-mini" >View Student Grades</a></td>
							
						</tr>
						<tr>
							<td><span class="label">Subject</span></td>
							<td><?=$v['subj'];?></td>
						</tr>
						<tr>
							<td><span class="label">Time</span></td>
							<td><?=$v['time'];?></td>
						</tr>
						<tr>
							<td><span class="label">Days:</span></td>
							<td><?=$v['day'];?></td>
						</tr>
						<tr>
							<td><span class="label">Section Name:</span></td>
							<td><?=$v['section_name'];?></td>
						</tr>
						<tr>
							<td><span class="label">Name of Room:</span></td>
							<td><?=$v['room_name'];?></td>
						</tr>
						<tr>
							<td><span class="label">Room Description:</span></td>
							<td><?=$v['room_name'];?></td>
						</tr>
						<tr>
							<td><span class="label">Grade Level:</span></td>
							<td><?=$v['level_desc'];?></td>
						</tr>
						<tr>
							<td><span class="label">Room/Section Adviser:</span></td>
							<td><?=$v['adviser'];?></td>
						</tr>
						</table>
					<?$this->load->view('teacher/_sched_template',$datas);?>
				</div>
			</section>
		<?endforeach;?>
	</div>
<?else:?>
		<div class="alert-box">
			No Other Schedule assigned.
		</div>
<?endif;?>
</div>

<div id="commendations" class="reveal-modal">
  <p class="lead-title">Send Student A Commendation.</p>
  <form id="commend" action="<?=site_url(['output','commendations']);?>" method="POST">
  	<textarea name="student_commendation" style="height:250px;min-height:250px;max-height:250px;min-width:100%;max-width:100%;" required></textarea>
  	<button class="btn btn-primary" id="submit_commendation">Send To Student</button>
  </form>
  <a class="close-reveal-modal">&#215;</a>
</div>

<script src="<?=script_url('custom/commendstudent');?>"></script>